package com.zebra.common;

/**
 *
 * @Date 2020/7/17 0017
 **/
public class ZebraException extends Exception {


    /**
     * 用作序列化
     */
    /** For serialization */
    private static final long serialVersionUID = 6135628271812505L;

    private int exceptionCode;


    public ZebraException(String exception){
        super(exception);
    }

    public ZebraException(int exceptionCode){
        super(String.valueOf(exceptionCode));
        this.exceptionCode = exceptionCode;
    }

    public ZebraException(int exceptionCode, String message){
        super(message);
        this.exceptionCode = exceptionCode;
    }

    /**
     * Constructor.
     */
    public ZebraException(int exceptionCode, Throwable cause) {
        super(String.valueOf(exceptionCode), cause);
    }


    public int getExceptionCode() {
        return exceptionCode;
    }




}
